package com.loong.news.model;

import com.loong.common.mybatis.entity.BaseEntity;
import java.util.Date;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class News extends BaseEntity {
    private String title;

    @Column(name = "category_id")
    private Long categoryId;

    private String press;

    private String author;

    @Column(name = "key_word")
    private String keyWord;

    @Column(name = "picture_path")
    private String picturePath;

    @Column(name = "video_path")
    private String videoPath;

    @Column(name = "image_and_video_num")
    private Integer imageAndVideoNum;

    private Integer status;

    @Column(name = "read_num")
    private Long readNum;

    @Column(name = "share_num")
    private Long shareNum;

    @Column(name = "like_num")
    private Long likeNum;

    @Column(name = "unlike_num")
    private Long unlikeNum;

    @Column(name = "release_time")
    private Date releaseTime;

    @Column(name = "reject_time")
    private Date rejectTime;

    private Boolean top;

    private String content;

    private String summarize;
}